package org.jeecg.modules.htxincailiao.analytics.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.contant.HTClient;
import org.jeecg.common.util.oConvertUtils;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_platform_visit_action
 * @Author: jeecg-boot
 * @Date:   2022-05-07 10:18:56
 * @Version: V1.0
 */
@Data
@TableName("ht_platform_visit_action")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_platform_visit_action对象", description="ht_platform_visit_action")
public class HTPlatformVisitAction implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**访问IP*/
	@Excel(name = "访问IP", width = 15)
    @ApiModelProperty(value = "访问IP")
    private String visitIp;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    @ApiModelProperty(value = "用户ID")
    private String userId;
	/**省ID*/
	@Excel(name = "省ID", width = 15, dictTable = "ht_area", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_area", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "省ID")
    private String provinceId;
	/**市ID*/
	@Excel(name = "市ID", width = 15, dictTable = "ht_area", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_area", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "市ID")
    private String cityId;
	/**区ID*/
	@Excel(name = "区ID", width = 15, dictTable = "ht_area", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_area", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "区ID")
    private String districtId;
	/**操作系统*/
	@Excel(name = "操作系统", width = 15, dicCode = "client_os")
	@Dict(dicCode = "client_os")
    @ApiModelProperty(value = "操作系统")
    private Integer clientOs;
	/**访问渠道：1 - 公众号 2 - PC*/
	@Excel(name = "访问渠道：1 - 公众号 2 - PC", width = 15, dicCode = "channel")
	@Dict(dicCode = "channel")
    @ApiModelProperty(value = "访问渠道：1 - 公众号 2 - PC")
    private Integer channel;
	/**访问时间*/
	@Excel(name = "访问时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "访问时间")
    private Date visitTime;
	/**离开时间*/
	@Excel(name = "离开时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "离开时间")
    private Date leaveTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "省名")
    private String provinceName;

    @TableField(exist = false)
    @ApiModelProperty(value = "客户端操作系统")
    private String clientOsString;


}
